*
* Main file running analysis for Tables presented in the paper
*

global main_dir "~/Research/Obvious Mistakes/replication_package/"

global data_dir "${main_dir}/tidy_data/"
global result_dir "${main_dir}/results/"
global code_dir "${main_dir}/code_analysis/"
global helpers_dir "${code_dir}/helpers/"

* Applicant-level data (Tables 2, 3, 4, 5, 6, B1, B2, B3)
global data_applicant_level_tidy "${data_dir}/data_applicant_level_analysis.dta"

* Program-level data (Tables 7, 8, B4)
global data_program_level_tidy "${data_dir}/data_program_level_analysis.dta"

cd "${main_dir}"

* Main text/
* Table 2: Applicant-level summary-statistics
do "${code_dir}/analysis_Table2.do"

* Table 3: The Prevalence and Private Cost of Dominated Choices
do "${code_dir}/analysis_Table3.do"

* Table 4: The aggregate effect of dominated choices
do "${code_dir}/analysis_Table4.do"

* Table 5: Characteristics of winners and losers
do "${code_dir}/analysis_Table5.do"

* Table 6: Demographics, socioeconomic status, academic achievement and dominated choices
do "${code_dir}/analysis_Table6.do"

* Table 7: Program characteristics and dominated choices
do "${code_dir}/analysis_Table7.do"

* Table 8: Program characteristics and dominated choices: heterogeneity
do "${code_dir}/analysis_Table8.do"

* Cost of dominated choices
do "${code_dir}/analysis_CostOfDominatedChoices.do"

* Additional results/

* Table B1: Demographics, socioeconomic status, academic achievement and dominated choices: Relevant applicants
do "${code_dir}/analysis_TableB1.do"

* Table B1: Demographics, socioeconomic status, academic achievement and dominated choices: High-school senior applicants
do "${code_dir}/analysis_TableB2.do"

* Table B3: Demographics, socioeconomic status, academic achievement and dominated choices
do "${code_dir}/analysis_TableB3.do"

* Table B4: Program characteristics and dominated choices: heterogeneity
do "${code_dir}/analysis_TableB4.do"


